package com.tencent.backstage.enums;

import lombok.Getter;

/**
 * Created by 楠尼玛
 * 2018-03-31
 */
@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    ERROR(400,"获取验证失败"),
    REGISTER_ERROE(401,"注册失败"),
    COOKIE_FAIL(402,"cookie 失效"),
    REDIS_FAIL(403,"该手机号码还没有获取验证码"),
    UNKNOW(404,"未知平台"),
    PHONE_NO_ONLY(405,"手机号码不一致"),
    CODE_NO_ONLY(406,"验证码输入错误"),
    PHONE_REPEAT(407,"手机号码已被注册"),
    PHONE_ERROR(408,"手机号码格式错误"),
    PHONE_COOLING(409,"手机号获取验证码频繁,限时60秒中"),
    PHONE_NOT_EXIST(410,"手机号码不存在"),
    LOGIN_ERROR(411,"登陆失败"),
    CODE_ERROR(412,"验证码输入错误"),
    TYPE_ERROR(413,"类型选择错误"),
    ;
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
